//
//  TPViewCell.m
//  YiLiao
//
//  Created by 丁超人 on 16/5/9.
//  Copyright © 2016年 丁超人. All rights reserved.
//
#define kWIDTH [UIScreen mainScreen].bounds.size.width

#import "TPViewCell.h"

@implementation TPViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kWIDTH, 200)];
    
    self.imageView = imageView;
    
    imageView.image = self.image;
    
    [self.contentView addSubview:imageView];
    
    
    return self;
}
-(void)setImage:(UIImage *)image
{
    _image = image;
    
    self.imageView.image = image;
}

@end
